/**
 * @file Amemory_config.h
 * @author taoye
 * @brief Amemory config
 * @version 0.0.1
 * @date 2022-08-09
 * 
 * @copyright (c) 2022 taoye
 * 
 */

#ifndef __Amemory_CONFIG_H__
#define __Amemory_CONFIG_H__

#ifndef BOOT_PROJECT
#define A_MEMORY_USE_RTOS 		1
#define A_MEMORY_USE_SHELL      1
#define A_MEMORY_USE_TRANSFER   1

#else
#define A_MEMORY_USE_RTOS 		0
#define A_MEMORY_USE_SHELL      0
#define A_MEMORY_USE_TRANSFER   0
#endif

///*************************************片内flash****************************************/
//#define STORAGE_BOOTLOADER_BASE     (0x08000000)
//#define STORAGE_BOOTLOADER_SIZE     (0x20000) // 128K

//#define STORAGE_PARM_UPATAE_BASE    (STORAGE_BOOTLOADER_BASE + STORAGE_BOOTLOADER_SIZE)
//#define STORAGE_PARM_UPATAE_SIZE    (0x20000)    // 128K

//#define STORAGE_APPLICATION_BASE    (STORAGE_PARM_UPATAE_BASE + STORAGE_PARM_UPATAE_SIZE)
//#define STORAGE_APPLICATION_SIZE    (0x7C000) // 496K
///**************************************************************************************/

///**************************************W25Q128******************************************/
//#define STORAGE_DOWNLOAD_BASE       (0x00000000)
//#define STORAGE_DOWNLOAD_SIZE       (0x7C000) // 496K
//#define STORAGE_LOG_BASE            (STORAGE_DOWNLOAD_BASE + STORAGE_DOWNLOAD_SIZE)
//#define STORAGE_LOG_SIZE            (0x100000) // 1M
///**************************************************************************************/


#define M_SOFT_SPIFLASH             "W25Q64"
#define M_SOFT_SPIFRAM              "mb85rs64"
#define M_CPU_FLASH					"CPU_FLASH"

#define M_UPAPP_AERA				"UPDATA_APP" //升级程序区
#define M_UPPARA_AERA				"UPDATA_PARA"//升级参数区
#define M_APP_AERA				    "APP"        //应用程序区
#define M_DOWNLOAD_AREA 			"IAP"        //下载区
#define M_LOG_AREA 				    "log"        //LOG区
#define M_SYSPARM_AREA 				"SysParam"

#endif

